package io;

import java.io.IOException;
import java.io.InputStream;
import java.io.PrintStream;

import org.junit.Test;

public class PrintDemo {
	@Test
	public void system() throws IOException {
		// 输入流
		InputStream in = System.in;
		// 打印流
		PrintStream out = System.out;
		// 打印流
		PrintStream err = System.err;
		
		byte[] content = new byte[10];
		in.read(content);
		
		out.println(new String(content));
		err.println(new String(content));
	}
}
